package com.ruoyi.web.domain;

import com.alibaba.fastjson.JSONObject;
import com.fasterxml.jackson.annotation.JsonProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

public class StartProcessEntity implements Serializable {
    private static final long serialVersionUID = 1L;
    private String BatchNo;
    private String ProductionNo;
    private String AreaNo;

    public void setBatchNo(String BatchNo) {
        this.BatchNo = BatchNo;
    }

    @JsonProperty("BatchNo")
    public String getBatchNo() {
        return this.BatchNo;
    }

    public void setProductionNo(String ProductionNo) {
        this.ProductionNo = ProductionNo;
    }

    @JsonProperty("ProductionNo")
    public String getProductionNo() {
        return this.ProductionNo;
    }

    public void setAreaNo(String AreaNo) {
        this.AreaNo = AreaNo;
    }

    @JsonProperty("AreaNo")
    public String getAreaNo() {
        return this.AreaNo;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE)
                .append("BatchNo", getBatchNo())
                .append("ProductionNo", getProductionNo())
                .append("AreaNo", getAreaNo())
                .toString();
    }

    public JSONObject toJson() {
        JSONObject jsonObject = new JSONObject();
        jsonObject.put("BatchNo", this.BatchNo);
        jsonObject.put("ProductionNo", this.ProductionNo);
        jsonObject.put("AreaNo", this.AreaNo);
        return jsonObject;
    }
}
